import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false;
import "bootstrap"  // 加载bs的逻辑
import "bootstrap/dist/css/bootstrap.css"
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import settings from '@/assets/js/settings'
import '@/assets/css/global.css'
Vue.prototype.$settings = settings;
import Axios from 'axios'
Vue.prototype.$axios = Axios;
import Cookies from 'vue-cookies'
Vue.prototype.$cookies = Cookies;
import Router from 'vue-router'
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
};


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
